package com.wn.ticket.mapper;

import com.wn.ticket.entity.Artist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/29
 */
@Repository
public interface PerformArtistMapper {
    /**
     * 批量增加
     * @param performId
     * @param artistList
     */
    void addList(@Param("performId") int performId, @Param("artistList") List<Artist> artistList);

    /**
     * 批量删除
     * @param performId
     * @param artistList
     */
    void delete(@Param("performId") int performId, @Param("artistList") List<Artist> artistList);

    /**
     * 根据艺人id查询相关艺人的演出
     * @param artistId
     * @return
     */
    List<Artist> getByArtistId(int artistId);

}
